package com.tianhua.javs.client.func;

import com.tianhua.javs.client.bean.DomainModelBean;
import com.tianhua.javs.client.bean.ScriptVarMappingBean;
import com.tianhua.javs.client.bean.TranslateResultBean;

import java.util.List;
import java.util.Map;

/**
 * Description:关键字翻译函数
 * date: 2022/2/11
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public interface IScriptFunc extends IFunc {
    /**
     * 关键字转译函数
     * @param keyWardStr javs 关键字函数代码段
     * @param javsVarMap javs 脚本变量与原生变量的映射
     * @return Java原生代码段
     */
    TranslateResultBean translate(String keyWardStr, Map<String, List<ScriptVarMappingBean>> javsVarMap);
}
